package com.future.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("announcement")
public class Announcement {
    @TableId(type = IdType.AUTO)
    @ApiModelProperty("公告ID")
    private Long id;
    @ApiModelProperty("公告标题")
    private String title;
    @ApiModelProperty("公告内容")
    private String content;
    @ApiModelProperty("发布者ID")
    private Long publisherId;
    @ApiModelProperty("是否置顶")
    private int isPinned;
    @ApiModelProperty("发布时间")
    private LocalDateTime publishedAt;
}
